package com.ruoyi.web.controller.mall.orderBack.service.impl;

import com.ruoyi.web.controller.mall.orderBack.domain.OrderBack;
import com.ruoyi.web.controller.mall.orderBack.mapper.OrderBackMapper;
import com.ruoyi.web.controller.mall.orderBack.service.IOrderBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 退货记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class OrderBackServiceImpl implements IOrderBackService 
{
    @Autowired
    private OrderBackMapper orderBackMapper;

    /**
     * 查询退货记录
     * 
     * @param id 退货记录ID
     * @return 退货记录
     */
    @Override
    public OrderBack selectOrderBackById(String id)
    {
        return orderBackMapper.selectOrderBackById(id);
    }

    /**
     * 查询退货记录列表
     * 
     * @param orderBack 退货记录
     * @return 退货记录
     */
    @Override
    public List<OrderBack> selectOrderBackList(OrderBack orderBack)
    {
        return orderBackMapper.selectOrderBackList(orderBack);
    }

    /**
     * 新增退货记录
     * 
     * @param orderBack 退货记录
     * @return 结果
     */
    @Override
    public int insertOrderBack(OrderBack orderBack)
    {
        return orderBackMapper.insertOrderBack(orderBack);
    }

    /**
     * 修改退货记录
     * 
     * @param orderBack 退货记录
     * @return 结果
     */
    @Override
    public int updateOrderBack(OrderBack orderBack)
    {
        return orderBackMapper.updateOrderBack(orderBack);
    }

    /**
     * 删除退货记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOrderBackByIds(String[] ids)
    {
        return orderBackMapper.deleteOrderBackByIds(ids);
    }

    /**
     * 删除退货记录信息
     * 
     * @param id 退货记录ID
     * @return 结果
     */
    @Override
    public int deleteOrderBackById(String id)
    {
        return orderBackMapper.deleteOrderBackById(id);
    }
}
